﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Collections;

namespace NICRUtils {
    class Program {
        static void Main(string[] args) 
        {

            FileProcessor fp = new FileProcessor();
            byte[] dataArray = null;
            int tempSize = 1024 * 1024 * 10;
            List<long> startLocation = new List<long>();
            for (long i = 0; tempSize != 0; i += tempSize) {
                if (startLocation.Count > 0) {
                    startLocation.RemoveAt(startLocation.Count - 1);
                }
                startLocation.Add(i);

                tempSize = fp.breakFile(@"C:\@%~PRADNYA~%@\~~(04)@SONGS~~\Demo.rar", startLocation, tempSize, out dataArray);
                Console.WriteLine(i);
                
                if ((i + tempSize) >= long.MaxValue) {                    
                    i = 0;
                    startLocation.Add(i);
                }
            }
            float k = long.MaxValue / (1024 * 1024 * 1024);
            Console.WriteLine(k);
            Console.Read();
        }
    }
}
